<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<parent>
		<groupId>com.uaf.vxalipaybill</groupId>
		<artifactId>uaf-vxalipaybill-parent</artifactId>
		<version>0.0.1-RELEASE</version>
	</parent>

	<groupId>com.uaf.vxalipaybill</groupId>
	<artifactId>uaf-vxalipaybill-provider</artifactId>
	<name>uaf-vxalipaybill-provider</name>
	<packaging>jar</packaging>
	<url>http://maven.apache.org</url>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<!-- 跳过本模块deploy -->
		<maven.deploy.skip>true</maven.deploy.skip>
		<!-- 跳过本模块install -->
		<maven.install.skip>true</maven.install.skip>
		<!-- 跳过本模块test -->
		<maven.test.skip>true</maven.test.skip>
		<sonar.coverage.exclusions>
			**/bean/*,
			**/config/*,
			**/utils/*,
			**/action/v1/*,
			**/mapper/*,
			**/*Application*
		</sonar.coverage.exclusions>
	</properties>

	 <dependencies>
            <!--聚合服务（提供oracle数据库，spring boot，spring cloud等支持）-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-provider</artifactId>
                <exclusions>
                    <exclusion>
                        <artifactId>guava</artifactId>
                        <groupId>com.google.guava</groupId>
                    </exclusion>
                    <exclusion>
                        <artifactId>HdrHistogram</artifactId>
                        <groupId>org.hdrhistogram</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <!--分表插件-->
            <dependency>
                 <groupId>org.apache.shardingsphere</groupId>
                 <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
                 <version>4.0.0-RC1</version>
            </dependency>
            <dependency>
                <groupId>com.uaf.vxalipaybill</groupId>
                <artifactId>uaf-vxalipaybill-api</artifactId>
            </dependency>

            <!--公共工具类-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-common</artifactId>
            </dependency>
            <!--统一身份认证-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-security</artifactId>
            </dependency>
            <!--日志服务-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-log</artifactId>
            </dependency>
            <dependency>
                <groupId>javax.persistence</groupId>
                <artifactId>persistence-api</artifactId>
            </dependency>
            <!--链路追踪-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-sleuth</artifactId>
            </dependency>
            <!--apollo配置中心-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-apollo</artifactId>
            </dependency>
            <!--核心微服务-http-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-http</artifactId>
            </dependency>
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-aop</artifactId>
            </dependency>
            <!--邮箱服务-->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-mail</artifactId>
            </dependency>
            <!--解压服务-->
            <dependency>
                <groupId>net.lingala.zip4j</groupId>
                <artifactId>zip4j</artifactId>
            </dependency>
            <!--文件系统-->
            <dependency>
                <groupId>com.uaf.filesystem</groupId>
                <artifactId>uaf-filesystem-api</artifactId>
            </dependency>
            <!--文件系统-->
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-redis</artifactId>
            </dependency>
            <dependency>
                <groupId>com.uaf</groupId>
                <artifactId>microservice-mask</artifactId>
            </dependency>
        </dependencies>
	<build>
		<finalName>uaf-vxalipaybill-provider</finalName>
		<resources>
			<resource>
				<directory>src/main/java</directory>
				<includes>
					<include>**/*.xml</include>
				</includes>
				<filtering>false</filtering>
			</resource>
			<resource>
				<targetPath>${project.build.directory}/classes</targetPath>
				<directory>src/main/resources</directory>
				<filtering>true</filtering>
				<includes>
					<include>**/*.xml</include>
					<include>**/*.yml</include>
					<include>**/*.properties</include>
				</includes>
			</resource>
		</resources>

		<pluginManagement>
			<plugins>
				<!-- install时忽略junit测试 -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>2.5</version>
					<configuration>
						<skipTests>true</skipTests>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<plugins>
			<!-- 打包jar文件时，配置manifest文件，加入lib包的jar依赖 -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<classesDirectory>target/classes/</classesDirectory>
					<archive>
						<manifest>
							<!-- 设置程序执行主类 -->
							<mainClass>com.uaf.vxalipaybill.provider.VxAlipayBillApplication</mainClass>
							<!-- 打包时 MANIFEST.MF文件不记录的时间戳版本 -->
							<useUniqueVersions>false</useUniqueVersions>
							<addClasspath>true</addClasspath>
							<classpathPrefix>lib/</classpathPrefix>
						</manifest>
						<manifestEntries>
							<Class-Path>.</Class-Path>
						</manifestEntries>
					</archive>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>package</phase>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
						<configuration>
							<type>jar</type>
							<includeTypes>jar</includeTypes>
							<outputDirectory>
								${project.build.directory}/lib
							</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.sonarsource.scanner.maven</groupId>
				<artifactId>sonar-maven-plugin</artifactId>
				<version>3.5.0.1254</version>
			</plugin>
			<!--sonar扫描覆盖率-->
			<plugin>
				<groupId>org.jacoco</groupId>
				<artifactId>jacoco-maven-plugin</artifactId>
				<version>0.7.9</version>
				<executions>
					<execution>
						<goals>
							<goal>prepare-agent</goal>
							<goal>report</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
